<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: koishi
  Date: 2024/11/5
  Time: 11:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      Map<String,Object> map=new HashMap<>();
      map.put("1","11");
      map.put("2","22");
      map.put("3","33");
      request.setAttribute("map",map);
  %>
  <c:forEach items="${map}" var="item">
      item=${item}<br>
      key=${item.key},value=${item.value}
      <br>
  </c:forEach>
</body>
</html>
